package com.ocm.api.bo;

import com.ocm.api.entity.Api;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * Author:   hqy
 * Date:     2021/11/6 16:08
 * Description:用于网关与system服务交互，获取api权限信息用于网关鉴权
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ApiBO extends Api {

	public ApiBO() {

	}

	private static final long serialVersionUID = 16464654L;

	private List<String> roles;

	public ApiBO(List<String> roles) {
		this.roles = roles;
	}
}
